package xyz.penghaonan.p2plib.helper.message;

import android.os.Bundle;

public abstract class BaseRequestMsg extends BaseMsg implements IResponseListener {
    private long id = System.currentTimeMillis();
    protected final Bundle data = new Bundle();

    public long getId() {
        return id;
    }

    abstract public BaseResponseMsg createResponseMsg();

    public void send() {
        MsgSender.sendMsg(this, this);
    }

    @Override
    public void onResponse(BaseResponseMsg msg) {

    }
}
